<style type="text/css">
    html{_overflow-y:scroll}
</style>

<form name="items" id="items" action="{$base_url}profile/login" method="post">
<div class="pad_10">

<div id="div_setting_1" class="contentList pad-10">
<table width="100%" class="table_form">

    <tr>
        <th width="100">登录名：</th>
        <td>
            <input name='username' class="input-text" type='text' id='username' value='' size='20' maxlength='20' />
        </td>
    </tr>

    <tr>
        <th width="100">密码：</th>
        <td>
            <input name='password' class="input-text" type='password' id='password' value='' size='20' maxlength='20' />
        </td>
    </tr>

    <tr>
        <th width="100">验证码：</th>
        <td>
            <input name='pincode' class="input-text" type='text' id='pincode' value='' size='4' maxlength='4' />
            <a href="javascript:captcha();" title="点击刷新验证码"><img src="{$base_url}profile/pincode" style="border:0;" id="captcha"/></a>
        </td>
    </tr>

</table>
</div>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="登录" class="button">
</form>
</div>

<!--table_form_off-->
</div>

<script type="text/javascript">
<!--
jQuery(function()
{
    jQuery.formValidator.initConfig({
        formid:"items",
        autotip:true,
        onerror:function(msg,obj) {
            window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function() {
                this.close();
                $(obj).focus();
            })
        }
    });

    // 登录名
    $("#username").formValidator({onshow:"请输入用户名",onfocus:"用户名应该为2-20位之间",oncorrect:"正确"})
    .inputValidator({min:2,max:20,onError:"用户名应该为2-20位之间"})
    .regexValidator({regexp:"zh_username",datatype:"enum",onerror:"用户名格式错误"});

    $("#password").formValidator({onshow:"请输入密码",onfocus:"密码应该为6-20位之间",oncorrect:"正确"})
    .inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
    
    // 验证码
    $("#pincode").formValidator({ onshow:"请输入验证码", onfocus:"请输入验证码", oncorrect:"正确"})
    .inputValidator({ min:4,max:4,onerror:"请输入验证码"});

//end jQuery
});
//-->
</script>

<script type="text/javascript" src="{$asset_url}js/jquery.formvalidator.js"></script>
<script type="text/javascript" src="{$asset_url}js/jquery.formvalidatorregex.js"></script>